package com.bo.baby2.dao;

import com.bo.baby2.entity.TBankCard;


/**
* @program: baby2_p2p
*
* @description: ${description}
*
* @author:波
*
* @create: 2020-07-14 21:18
**/


public interface TBankCardMapper {
    int deleteByPrimaryKey(String id);

    int insert(TBankCard record);

    int insertSelective(TBankCard record);

    TBankCard selectByPrimaryKey(String id);

    int updateByPrimaryKeySelective(TBankCard record);

    int updateByPrimaryKey(TBankCard record);

    TBankCard selectByUserId(String userId);

    /**
     * 提现，修改金额
     * @param record
     * @return
     */
    int  updateBalance(TBankCard record);

    /**
     * 充值账号，修改金额
     * @param record
     * @return
     */
    int updateBalanceT(TBankCard record);

    /**
     * 根据银行卡查询信息余额
     * @return
     */
    TBankCard getBalanceByCardNumber(String CardNumber);
}